

          <div class="formBg">
            <table  style="width:100%;">
              <tr>
                <td style="width:115px; text-align:right; padding-right:5px;"><%=t('general.name')%></td>
                <td style="width:115px;"><%= form.text_field :name, :class=>"validate[required,minSize[3],funcCall[checkHELLO]] text-input", :style=>"width:200px; height:19px; border:#d1d1d1 1px solid;" %></td>
              <td style="font-style: italic; color: rgb(0, 0, 0); padding-left: 8px;"></td>
			  </tr>
            </table>
          </div>

          <div class="formBg">
            <table  style="width:100%;">
              <tr>
                <td style="width:115px; text-align:right; padding-right:5px;"><%=t('login.userid')%></td>
                <td style="width:115px;"><%= form.text_field :login, :class=>"validate[required,minSize[3],funcCall[checkHELLO]] text-input", :style=>"width:200px; height:19px; border:#d1d1d1 1px solid;" %></td>
              <td style="font-style: italic; color: rgb(0, 0, 0); padding-left: 8px;"></td>
			  </tr>
            </table>
          </div>
	  
          <div class="formBg">
            <table  style="width:100%;">
              <tr>
                <td style="width:115px; text-align:right; padding-right:5px;"><%=t('general.email')%></td>
                <td style="width:115px;"><%= form.text_field :email, :class=>"validate[required,custom[email]] text-input", :style=>"width:200px; height:19px; border:#d1d1d1 1px solid;" %></td>
              <td style="font-style: italic; color: rgb(0, 0, 0); padding-left: 8px;"></td>
			  </tr>
            </table>
          </div>

<%if @value == 3%>
<% if @category_subject %>
<span id="collectCategorysubject"><%=render :partial=>"collectCategorysubject"%></span>
<%else%>
<div>
	<%=t('not_found.add_category')%>
</div>
<%end%>
<%end%><br /><br />

<%= form.hidden_field :role_id, :value => @value %>
<%= form.hidden_field :is_approved, :value => 1 %>

 


<script type="text/javascript">	

function checkUncheckAll(checkAllState, cbGroup)
{
	// Check that the group has more than one element
	if(cbGroup.length > 0)
	{
		// Loop through the array
		for (i = 0; i < cbGroup.length; i++)
		{
			cbGroup[i].checked = checkAllState.checked;
		}
	}
	else
	{
		// Single element so not an array
		cbGroup.checked = checkAllState.checked;
	}
}

$(document).ready(function() {
$("#collectCategorysubject .pagination a").live("click", function(){
	
	var link = this.href
	var lastChar = link.substr(link.length - 1);	
	if (lastChar == '#'){
		return false;
	}
	else{
		$.getScript(this.href);
		return false;
	}
   });

  });
</script>